<script setup lang="ts">
import { placeholderSrc } from '@/const/file';

const props = defineProps<{
	width?: string | number;
	height?: string | number;
	src?: string;
	fallback?: string;
}>();

</script>

<template>
	<a-image class="preview-img" :height="$props.height" :width="props.width" :fallback="props.fallback || placeholderSrc" :src="props.src || ''" />
</template>

<style lang="less">
.preview-img {
	object-fit: contain;
}
</style>
